<#include "../common/head.ftl" />
<#include "../common/page.ftl" />
<!DOCTYPE html>
<html>
	<@comme_head />
	<@comme_table/>
<head lang="en">
    <meta charset="UTF-8">
    <title>单题信息列表页</title>
    
</head>
 <script>
  function search(){
    var topic_name =  $("#topic_name").val();
    window.location.href = "/manager/manager_singleTopicDay_list?topic_name="+topic_name+"&currentpageno=0";
  }
 </script>
<body>
<@comme_header />
<div class="main clearfix" id="main">
   <@comme_daohang />
    <div class="right-content">
        <div class="content">
            <div id="container">
                <div class="box-1">
                    <input type="text" placeholder="搜索" class="search" name="topic_name" id="topic_name" value="${topic_name?if_exists}">
                    <b class="fangdajing" onclick="search()"></b>
                </div>
                <table class="zebra">
                    <caption>宝宝单题信息统计表</caption>
                    <thead>
                    <tr>
                        <th>题ID</th>
                        <th>题目</th>
                        <th>题出现次数</th>
                        <th>平均答题时间（秒）</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                    </tr>
                    </thead>
                    <tbody>
                     <#if manager_singleTopicDay_list?size != 0>
                   <#list manager_singleTopicDay_list as singleTopic>
                    <tr>
                        <td>${singleTopic.topic_id!}</td>
                        <td>${singleTopic.topic_name!}</td>
                        <td>${singleTopic.topic_sum!}</td>
                        <td>${singleTopic.topic_avgtime!}</td>
                        <td>${singleTopic.create_time!}</td>
                        <td>${singleTopic.update_time!}</td>
                    </tr>
                    </#list>
                    <#else>
                      <tr>
		                        <td colspan="6">没有相关数据</td>
		                    </tr>
                    </#if>
                    <tr>
                      <td colspan="5">
                        <div class="pages">
											<@page pageid="" url="/manager/manager_singleTopicDay_list?currentpageno=" />
										</div>
                      </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>